//
//  CustomScreenMenuModel.h
//  PigMarket
//
//  Created by 张敬 on 2019/7/31.
//  Copyright © 2019年 pigmarket.oc. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, CustomScreenMenuType) {
    
    CustomScreenMenuType_default, //默认
    CustomScreenMenuType_Price, //价格
    CustomScreenMenuType_ShopOwns,//店主属性
    CustomScreenMenuType_SendDate, //配送日期
    CustomScreenMenuType_Screening //筛选
};

@class CustomScreenMenuItem, ScreenItem;

#pragma mark - --------- CustomScreenMenuModel ---------


@interface CustomScreenMenuModel : NSObject


/**
 文本集合
 */
@property (nonatomic, strong) NSArray *titles;


/**
 nomalIcon集合
 */
@property (nonatomic, strong) NSArray *nomalIcons;


/**
 selectedIcon集合
 */
@property (nonatomic, strong) NSArray *selectedIcons;



/**
 doubleSelectedIcon集合
 */
@property (nonatomic, strong) NSArray *doubleSelectedIcons;


/**
 数据
 */
@property (nonatomic, copy) NSArray <CustomScreenMenuItem *>* datas;



/**
 店主属性
 */
@property (nonatomic, strong) NSArray *shopOwns;



/**
 筛选
 */
@property (nonatomic, strong) NSArray<ScreenItem *> *screens;


@end


#pragma mark - --------- CustomScreenMenuItem ---------


@interface CustomScreenMenuItem : NSObject

@property (nonatomic, copy) NSMutableAttributedString *text; //图文文本
@property (nonatomic, copy) NSMutableAttributedString *selectedText; //被选择
@property (nonatomic, copy) NSMutableAttributedString *doubleSelectionText; //

@property (nonatomic, assign) CustomScreenMenuType type;
@property (nonatomic, assign) float textW;
@property (nonatomic, assign) float textOffsetX;

@end



#pragma mark - --------- ScreenItem ---------

@interface ScreenItem : NSObject

@property (nonatomic, copy) NSString *title;

@property (nonatomic, strong) NSArray<NSString *> *subTitles;

@property (nonatomic, strong) NSArray<NSNumber *> *tags;

@property (nonatomic, assign) NSInteger currentItem; //当前是第几个


@end



NS_ASSUME_NONNULL_END
